package cn.Mmovie.bean;

public class Cinema {
    private int id;
    private String name;
    private String location;
    private int capacity;

    public Cinema() {
    }
    public Cinema(Integer id) {
        this.id =id;
    }
    public Cinema(String name, String location, int capacity) {
        this.name = name;
        this.location = location;
        this.capacity = capacity;
    }
    public Cinema(Integer id,String name) {
        this.name = name;
        this.id=id;
    }

    public Cinema(int id, String name, String location, int capacity) {
        this.id = id;
        this.name = name;
        this.location = location;
        this.capacity = capacity;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return location
     */
    public String getLocation() {
        return location;
    }

    /**
     * 设置
     * @param location
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * 获取
     * @return capacity
     */
    public int getCapacity() {
        return capacity;
    }

    /**
     * 设置
     * @param capacity
     */
    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public String toString() {
        return "Cinema{id = " + id + ", name = " + name + ", location = " + location + ", capacity = " + capacity + "}";
    }
}
